﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using DocumentManagement.Models;
using System.Windows;

namespace DocumentManagement.ViewsModels
{
   public class OptionReportUserControlViewsModel : ViewsModelBase
    {
        private QSHCEntities1 _entityModels;
        public QSHCEntities1 EntityModels
        {
            get { return _entityModels; }
            set
            {
                if (_entityModels != value)
                {
                    _entityModels = value;
                    OnPropertyChanged("EntityModels");
                }
            }
        }


        private Receive _myReceive;
        public Receive MyReceive
        {
            get { return _myReceive; }
            set
            {
                if (_myReceive != value)
                {
                    _myReceive = value;
                    OnPropertyChanged("MyReceive");

                }
            }
        }

      


        public OptionReportUserControlViewsModel()
        {
            if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
            {
                EntityModels = new QSHCEntities1();

                //CurrentDivisionID = MyReceive.FormDivisionID;

                
            }
        }
        //public void checkDivisionID()
        //{
        //    CurrentDivisionID = MyReceive.FormDivisionID;
        //}

   
    }
}
